package com.example.jin.myapplication;

import java.util.Date;
import java.util.UUID;

/**
 * Created by jin on 2016/5/30.
 */
public class Crime {
    private String mTitle;
    private UUID mId;
    private Date mDate;
    private boolean mIsSolved;

    Crime(String title,UUID id,Date date,boolean sovled){
        this.mTitle=title;
        this.mDate=date;
        this.mId=id;
        this.mIsSolved=sovled;
    }
    Crime(UUID id){
        this.mTitle="";
        mId=id;
        mDate=new Date();
        mIsSolved=false;
    }
    public String getTitle() {
        return mTitle;
    }

    public void setTitle(String mTitle) {
        this.mTitle = mTitle;
    }

    public UUID getId() {
        return mId;
    }


    public Date getDate() {
        return mDate;
    }

    public void setDate(Date mDate) {
        this.mDate = mDate;
    }

    public boolean isSolved() {
        return mIsSolved;
    }

    public void setSolved(boolean mIsSolved) {
        this.mIsSolved = mIsSolved;
    }

    public String getPictureName(){
        String ret;
        ret="IMG_"+mId.toString()+".jpg";
        return ret;
    }
}
